function buildWorld() {
	var g = document.createElementNS (SVG, "g");
	g.setAttributeNS(null, 'id', "world");
	g.setAttributeNS(null, 'transform', "translate(0 0) scale(1 1)");

	g.appendChild(buildEurope());
	g.appendChild(buildNorthAmerica());
	g.appendChild(buildAsia());
	g.appendChild(buildAfrica());
	g.appendChild(buildSouthAmerica());
	g.appendChild(buildOceania());

//	svg.appendChild(buildImage("x.png"));
	return g;
}
function buildNorthAmerica() {
	var g = document.createElementNS (SVG, "g");
	g.setAttributeNS(null, 'id', "namerica");
	g.setAttributeNS(null, 'transform', "translate(-100 -50) scale(1 1)");

	g.appendChild(buildCircle(  0,  0, 50, "fill: yellow; stroke: black"));
	g.appendChild(buildCircle(-30,-20, 10, ""));
	g.appendChild(buildCircle(-10,-20, 10, ""));
	g.appendChild(buildCircle( 10,-20, 10, ""));
	g.appendChild(buildCircle( 30,-20, 10, ""));
	g.appendChild(buildCircle(-20,  0, 10, ""));
	g.appendChild(buildCircle(  0,  0, 10, ""));
	g.appendChild(buildCircle( 20,  0, 10, ""));
	g.appendChild(buildCircle(-10, 20, 10, ""));
	g.appendChild(buildCircle( 10, 20, 10, ""));
	g.appendChild(buildCircle(  0, 40, 10, ""));
	g.appendChild(buildText(0, -30, "North America", "text-anchor: middle"));

	return g;
}
function buildEurope() {
	var g = document.createElementNS (SVG, "g");
	g.setAttributeNS(null, 'id', "europe");
	g.setAttributeNS(null, 'transform', "translate(0 -50) scale(1 1)");

	g.appendChild(buildCircle(  0,  0, 50, "fill: blue; stroke: black"));
//	g.appendChild(buildArea("a1", "", "name", "-10,-10, 10,-10, 10, 10,-10, 10", "fill: blue; stroke: black"));
//	g.appendChild(buildArea("a1", "", "name", "  0,  0, 20,  0, 20, 20,  0, 20", "fill: blue; stroke: black"));
	g.appendChild(buildCircle(-10,-20, 10, ""));
	g.appendChild(buildCircle( 10,-20, 10, ""));
	g.appendChild(buildCircle(-20,  0, 10, ""));
	g.appendChild(buildCircle(  0,  0, 10, ""));
	g.appendChild(buildCircle( 20,  0, 10, ""));
	g.appendChild(buildCircle(-10, 20, 10, ""));
	g.appendChild(buildCircle( 10, 20, 10, ""));
	g.appendChild(buildText(0, -30, "Europe", "text-anchor: middle"));

	return g;
}
function buildAsia() {
	var g = document.createElementNS (SVG, "g");
	g.setAttributeNS(null, 'id', "asia");
	g.setAttributeNS(null, 'transform', "translate(100 -50) scale(1 1)");

	g.appendChild(buildCircle(  0,  0, 50, "fill: green; stroke: black"));
	g.appendChild(buildCircle(-30,-20, 10, ""));
	g.appendChild(buildCircle(-10,-20, 10, ""));
	g.appendChild(buildCircle( 10,-20, 10, ""));
	g.appendChild(buildCircle( 30,-20, 10, ""));
	g.appendChild(buildCircle(-20,  0, 10, ""));
	g.appendChild(buildCircle(  0,  0, 10, ""));
	g.appendChild(buildCircle( 20,  0, 10, ""));
	g.appendChild(buildCircle(-10, 20, 10, ""));
	g.appendChild(buildCircle( 10, 20, 10, ""));
	g.appendChild(buildCircle( 40, 10, 10, ""));
	g.appendChild(buildCircle(  0, 40, 10, ""));
	g.appendChild(buildCircle( 20, 40, 10, ""));
	g.appendChild(buildText(0, -30, "Asia", "text-anchor: middle"));

	return g;
}
function buildSouthAmerica() {
	var g = document.createElementNS (SVG, "g");
	g.setAttributeNS(null, 'id', "samerica");
	g.setAttributeNS(null, 'transform', "translate(-100 50) scale(1 1)");

	g.appendChild(buildCircle(  0,  0, 20, "fill: red; stroke: black"));
	g.appendChild(buildCircle( 10,-20, 10, ""));
	g.appendChild(buildCircle(  0,  0, 10, ""));
	g.appendChild(buildCircle( 20,  0, 10, ""));
	g.appendChild(buildCircle( 10, 20, 10, ""));
	g.appendChild(buildText(0, -30, "South America", "text-anchor: middle"));

	return g;
}
function buildAfrica() {
	var g = document.createElementNS (SVG, "g");
	g.setAttributeNS(null, 'id', "africa");
	g.setAttributeNS(null, 'transform', "translate(0 50) scale(1 1)");

	g.appendChild(buildCircle(  0,  0, 30, "fill: gray; stroke: black"));
	g.appendChild(buildCircle(-20,-20, 10, ""));
	g.appendChild(buildCircle(  0,-20, 10, ""));
	g.appendChild(buildCircle(-10,  0, 10, ""));
	g.appendChild(buildCircle( 10,  0, 10, ""));
	g.appendChild(buildCircle(  0, 20, 10, ""));
	g.appendChild(buildCircle( 40, 20, 10, ""));
	g.appendChild(buildText(0, -30, "Africa", "text-anchor: middle"));

	return g;
}
function buildOceania() {
	var g = document.createElementNS (SVG, "g");
	g.setAttributeNS(null, 'id', "oceania");
	g.setAttributeNS(null, 'transform', "translate(100 50) scale(1 1)");

	g.appendChild(buildCircle(  0,  0, 20, "fill: pink; stroke: black"));
	g.appendChild(buildCircle( 20,-20, 10, ""));
	g.appendChild(buildCircle(-20,  0, 10, ""));
	g.appendChild(buildCircle(  0, 20, 10, ""));
	g.appendChild(buildCircle( 20, 20, 10, ""));
	g.appendChild(buildText(0, -30, "Oceania", "text-anchor: middle"));

	return g;
}
